<extend name="Public/base" />
<block name="body">
    <div class="main-title" style="padding-bottom: 10px;">
        <h2>门店进货处理</h2>
    </div>
    <div class="cf">
        <div class="fl">

        </div>
        <!-- 高级搜索 -->
        <div class="search-form fr cf">
        </div>
    </div>


    <div class="panel panel-default">
        <div class="panel-body">
            <div class="row">
                <div class="col-md-10"><h4><a class="btn btn-default" onclick="history.go(-1)">返  回</a>     批次号： <mark>{$data.batchNum} </mark>  订货门店： <mark>{$data.shopId|get_sp_shop_name} </mark>  请求时间： <mark>{$data.createat|time_format} </mark> 状态： <mark class="text-danger"> {$data.bookStatus|get_sp_bookstatus_name} </mark>  </h4></div>
                <div class="col-md-2 text-right">   </div>
            </div>
        </div>
    </div>
   
    <div class="panel panel-default">
        <div class="panel-heading">{$data.batchNum} 进货单详情</div>
        <div class="panel-body data-table table-striped">
            <form method="POST" action="{:U('SpBookproduct/changeStatus')}" class="form1">
            <input type="hidden" name='id' value='{$data.id}'/>
            <table class="">
                <thead>
                    <tr>
                        <th>序号</th>
                        <th>商品名称</th>                       
                        <th>配货价</th>
                        <th>订货数量</th>
                         <th>单位</th>
                        <th>实发数量</th>
                        <th>金额</th>
                    </tr>
                </thead>
                <tbody>
                <volist name='_list' id='vo'>
                    <tr>
                        <td>{$i}</td>
                        <td>{$vo.productname}</td>
                        <td>{$vo.outstockprice}</td>
                        <td>{$vo.bookNum}</td>
                        <td>{$vo.unit}</td>
                        <td><eq name='data.bookStatus' value='10'><input type="hidden" name='pid[]' value='{$vo.id}'/><input name='sendNum[]' value="{$vo.sendNum}" style='width: 50px;'/></eq>   <gt name='data.bookStatus' value='29'> {$vo.sendNum}</gt></td>
                        <td>{$vo.subtotal}</td> 
                    </tr>    
                </volist> 
                </tbody>
            </table>
            备注信息：<br/>
            <textarea class="form-control" name='remark' rows="3">{$data.remark}</textarea>
            

            
            
            </form>
        </div>
    </div>


</block>


<block name="script">
    <script src="__STATIC__/thinkbox/jquery.thinkbox.js"></script>

    <script type="text/javascript">
        //搜索查询
        $('#submit').click(function () {
            document.getElementById("form-search").submit()
        });
        //导航高亮
        highlight_subnav('{:U('SpBookproduct/addindex')}');
    </script>
</block>